Remove gtkmodules.h
authorMatthias Clasen <mclasen@redhat.com>
Sun, 18 Feb 2018 14:02:05 +0000 (09:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 18 Feb 2018 14:41:29 +0000 (09:41 -0500)
We don't use these definitions anymore.

Also clean up the docs wrt to modules.

docs/reference/gtk/gtk4-sections.txt
docs/reference/gtk/running.sgml
gtk/gtk.h
gtk/gtkmodules.c
gtk/gtkmodules.h [deleted file]
gtk/gtkprintbackend.c
gtk/meson.build

index 75c71e609cc9b5e0347f1313df927ff144af7cdd..45ee4de405d03ed1c9ad862876ab78b61363f28e 100644 (file)
@@ -4600,9 +4600,6 @@ gtk_main_iteration
 gtk_main_iteration_do
 gtk_main_do_event
 
-GtkModuleInitFunc
-GtkModuleDisplayInitFunc
-
 <SUBSECTION>
 gtk_grab_add
 gtk_grab_get_current
index ebf9851756823ba7b6efc4e17fa870410633186d..e26370f12d8f579c9dfae9a7172f3c541ef3bc05 100644 (file)
@@ -122,36 +122,13 @@ additional environment variables.
   </para>
 </formalpara>
 
-<formalpara>
-  <title><envar>GTK3_MODULES</envar></title>
-
-  <para>
-    A list of modules to load. Note that GTK+ also allows to specify modules to load via a commandline option (<option>--gtk-module</option>) and with the <literal>gtk-modules</literal> setting.
-  </para>
-</formalpara>
-
-<formalpara>
-  <title><envar>GTK_MODULES</envar></title>
-
-  <para>
-    A list of modules to load in addition to the ones in the <envar>GTK3_MODULES</envar> variable.
-  </para>
-  <warning>
-    Note that this environment variable is read by GTK+ 2.x too,
-    which may not have the same set of modules available for loading.
-    Use <envar>GTK3_MODULES</envar> for modules that are only compatible
-    with GTK+ 3.
-  </warning>
-</formalpara>
-
 <formalpara id="gtk-path">
   <title><envar>GTK_PATH</envar></title>
 
   <para>
     Specifies a list of directories to search when GTK+ is looking for
-    dynamically loaded objects such as the modules specified by
-    <envar>GTK_MODULES</envar>, theme engines, input method
-    modules, file system backends and print backends. If the path to
+    dynamically loaded objects such as input method
+    modules and print backends. If the path to
     the dynamically loaded object is given as an absolute path name,
     then GTK+ loads it directly.
     Otherwise, GTK+ goes in turn through the directories in <envar>GTK_PATH</envar>,
index 3143f3f7f21beebe9200e0bd1303a4451de536e4..bb7fc29a4b1b2eb3092fe107c5ce3c95af7869ba 100644 (file)
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
 #include <gtk/gtkmenutoolbutton.h>
 #include <gtk/gtkmessagedialog.h>
 #include <gtk/gtkmodelbutton.h>
-#include <gtk/gtkmodules.h>
 #include <gtk/gtkmountoperation.h>
 #include <gtk/gtknativedialog.h>
 #include <gtk/gtknotebook.h>
index d8e98c848b5ff55359b4160b8d4f135ebefdb59d..57e6eb0f245df55eea81e097babaf66bbc730ef0 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <string.h>
 
-#include "gtkmodules.h"
 #include "gtksettings.h"
 #include "gtkdebug.h"
 #include "gtkprivate.h"
diff --git a/gtk/gtkmodules.h b/gtk/gtkmodules.h
deleted file mode 100644 (file)
index d851cd0..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright 1998-2002 Tim Janik, Red Hat, Inc., and others.
- * Copyright (C) 2003 Alex Graveley
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __GTK_MODULES_H__
-#define __GTK_MODULES_H__
-
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
-#include <gdk/gdk.h>
-
-G_BEGIN_DECLS
-
-/**
- * GtkModuleInitFunc:
- * @argc: (allow-none): GTK+ always passes %NULL for this argument
- * @argv: (allow-none) (array length=argc): GTK+ always passes %NULL for this argument
- *
- * Each GTK+ module must have a function gtk_module_init() with this prototype.
- * This function is called after loading the module.
- */
-typedef void     (*GtkModuleInitFunc)        (gint        *argc,
-                                              gchar      ***argv);
-
-/**
- * GtkModuleDisplayInitFunc:
- * @display: an open #GdkDisplay
- *
- * A multihead-aware GTK+ module may have a gtk_module_display_init() function
- * with this prototype. GTK+ calls this function for each opened display.
- */
-typedef void     (*GtkModuleDisplayInitFunc) (GdkDisplay   *display);
-
-
-G_END_DECLS
-
-
-#endif /* __GTK_MODULES_H__ */
index 38bb769ee8294e17c0d5e1960af7c037dce9e31f..bd294fca0fb8b01a53fa540d99c3a03d0aa97e8f 100644 (file)
@@ -22,7 +22,6 @@
 #include <gmodule.h>
 
 #include "gtkintl.h"
-#include "gtkmodules.h"
 #include "gtkmodulesprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkprivate.h"
index 92d4c0b43400ae211d85bbc22da5fde08e6a6013..4379956d864aa20918a6d1454b91ecd080bca7b4 100644 (file)
@@ -486,7 +486,6 @@ gtk_public_headers = files([
   'gtkmenutoolbutton.h',
   'gtkmessagedialog.h',
   'gtkmodelbutton.h',
-  'gtkmodules.h',
   'gtkmountoperation.h',
   'gtknativedialog.h',
   'gtknotebook.h',